package io.geekidea.boot.supplier.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;


@Data
@TableName("tb_supplier")
public class ExcelSupplier implements Serializable {
    private static final long serialVersionUID = 1l;



    @ExcelProperty("供应商名称")
    @NotBlank(message = "请输入供应商名称")
    private String name;

    @ExcelProperty("供应商编码")
    @NotBlank(message = "请输入供应商编码")
    private String code;

    @ExcelProperty("供应商类型")
    @NotBlank(message = "请输入供应商类型")
    private String type;

    @ExcelProperty("负责⼈名称")
    @TableField("principal")
    private String principal;

    @ExcelProperty("负责⼈联系⽅式")
    @TableField("phoneNumber")
    private String phoneNumber;

}
